<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
  
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>Fly社区</title>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_001z27klwvobt9.css">
    <link rel="stylesheet" href="/Bbs/Public/css/layui.css">
    <link rel="stylesheet" href="/Bbs/Public/css/global.css">
    <script src="/Bbs/Public/layui.js"></script>
    <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    
  </head>
  <body>
    <div class="header">
      <div class="main">
        <a class="logo" href="<?php echo U('home/index/index');?>" title="Fly">Fly社区</a>
        <div class="nav">
          <a href="/jie/">
            <i class="iconfont icon-wenda"></i>问答</a>
          <a href="/case/2016/">
            <i class="iconfont icon-iconmingxinganli" style="top: 2px;"></i>案例</a>
          <a href="http://www.layui.com/">
            <i class="iconfont icon-ui"></i>框架</a>
        </div>
        <?php if (!isset($_SESSION['nikename'])) { ?>
          <div class="nav-user">
            <a class="unlogin" href="<?php echo u('home/Enter/index');?>">
              <i class="iconfont icon-touxiang"></i>
            </a>
            <span>
              <a href="<?php echo u('Home/Enter/index');?>">登入</a>
              <a href="<?php echo u('Home/Reg/index');?>">注册</a>
            </span>
            <p class="out-login">
              <a href="<?php echo U('home/enter/qqlogin');?>" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-qq" title="QQ登入"></a>
              <a href="http://fly.layui.com:8098/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-weibo" title="微博登入"></a>
            </p>
          </div>
       <?php  } else { ?> 
          <div class="nav-user">
            <a class="avatar" href="<?php echo u('home/cen/user');?>">
              <img class="img" src="/Bbs/<?php echo $_SESSION['face']; ?>">
              <cite><?php echo $_SESSION['nikename'] ?></cite></a>
            <div class="nav">
              <a href="<?php echo u('home/cen/index');?>">
                <i class="iconfont icon-shezhi"></i>设置</a>
              <a href="<?php echo u('home/cen/quit');?>">
                <i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;" onclick="javascript:if(confirm('确定要退出吗？')){return true;}return false"></i>退出</a>
            </div>
          </div>
        <?php } ?>
      </div>
    </div>
    
    <div class="fly-home" style="background-image: url();">
      <img src="/Bbs/<?php echo $_SESSION['face']; ?>" alt="">
      <h1><?php echo $arr['nikename'] ?>
        <i class="iconfont <?php if ($arr['sex']==男|| $arr['sex']==保密) { echo 'icon-nan';}else{echo 'icon-nv';} ?> "></i></h1>
      <p class="fly-home-info">
        <i class="iconfont icon-zuichun" title="飞吻"></i>
        <span style="color: #FF7200;"><?php echo $arr['kiss'] ?>飞吻</span>
        <i class="iconfont icon-shijian"></i>
        <span><?php echo $arr['create_time'] ?> 加入</span>
        <i class="iconfont icon-chengshi"></i>
        <span>来自<?php echo $arr['city'] ?></span></p>
      <p class="fly-home-sign">（<?php echo $arr['sign'] ?>）</p></div>
    <div class="main fly-home-main">
      <div class="layui-inline fly-home-jie">
        <h2 class="page-title"><?php echo $arr['nikename'] ?> 最近的提问</h2>
        <ul class="jie-row">
        <?php  if (isset($q)) { foreach ($q as $v) { ?>
          <li>
          <?php if (strstr($v['status'],'精华')) { ?>
            <span class="fly-jing">精</span>
          <?php } ?> 
            <a href="<?php echo U('home/publish/issue',array('id'=>$v['id']));?>" class="jie-title"><?php echo $v['title'] ?></a>
            <i><?php echo $v['create_time'] ?></i>
            <em><?php echo $v['view_num'] ?>阅/<?php echo $v['answer_num'] ?>答</em>
          </li>
       <?php } } else {?> 
          <li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
            <i style="font-size:14px;">没有发表任何求解</i>
          </li>
        <?php } ?>
          
        </ul>
      </div>
      <div class="layui-inline fly-home-da">
        <h2 class="page-title"><?php echo $arr['nikename'] ?> 最近的回答</h2>
        <ul class="home-jieda">
          <?php if (isset($data)) { foreach ($data as $v) { ?>
            <li>
              <p>
                <span><?php echo $v['create_time'] ?></span>在
                <a href="/jie/6578.html#item-1483692527271" target="_blank"><?php echo $v['title'] ?></a>中回答：
              </p>
            <div class="home-dacontent"><?php echo htmlspecialchars_decode($v['content']) ?></div>
          </li>
          <?php }?>
            
         <?php  }else{ ?>
          <li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
            <span>没有回答任何问题</span>
          </li>
         <?php } ?>
          
          
        </ul>
      </div>
    </div>

    <div class="footer">
      <p>
        <a href="http://fly.layui.com/">Fly社区</a>2016 &copy;
        <a href="http://www.layui.com/">layui.com</a></p>
      <p>
        <a href="http://fly.layui.com/jie/3147.html" target="_blank">产品授权</a>
        <a href="http://fly.layui.com/jie/4536.html" target="_blank">获取Fly社区模版</a>
        <a href="http://fly.layui.com/jie/2461.html" target="_blank">微信公众号</a></p>
    </div>

  </body>

</html>